package nagel_schreckenberg;

import javax.swing.JFrame;

public class Frame extends JFrame{
	
	public Frame(String windowTitle, int w, int h, int xPos, int yPos){
		super(windowTitle);
		setSize(w, h);
        setLocation(xPos, yPos); 
        setResizable(false);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
	}
	
	public void addPanel(Panel p){
		this.setContentPane(p);
	}
}
